/*
* @Author: Srain
* @Date:   2018-07-26 20:42:55
* @Last Modified by:   Srain 
* @Last Modified time: 2018-10-06 11:20:31
*/


'use strict';

var _mm = require('util/mm.js');

var _volunteer = {
    // 获取志愿者列表
    getVolunteerList : function(resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/volunteer/wz/getVolunteerList'),
            success : resolve,
            error   : reject
        });
    },
    // 获取志愿者详细信息
    getVolunteerDetail : function(id, resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/volunteerwz/findById'),
            data    : {
                id : id
            },
            success : resolve,
            error   : reject
        });
    }
}
module.exports = _volunteer;